package com.situ.pattern.observer;

public class Client {
	
	public static void main(String[] args) {
		NewsPaper newsPaper = new NewsPaper();
		Reader reader1 = new Reader("张三");
		Reader reader2 = new Reader("李四");
		Reader reader3 = new Reader("王五");
		newsPaper.attach(reader1);
		newsPaper.attach(reader2);
		newsPaper.attach(reader3);
		newsPaper.setContent("那是一条神奇的天路");
	}
}
